package com.zhou.project.modules.activity.comment.controller;

import com.zhou.project.modules.activity.comment.entity.ActivityComment;
import com.zhou.project.modules.activity.comment.service.ActivityCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("activity/comment")
public class ActivityCommentController {

    @Autowired
    private ActivityCommentService activityCommentService;

    @PostMapping
    public void save(@RequestBody ActivityComment entity){
        activityCommentService.save(entity);
    }


}
